package com.ytc.www.openfeignclient;

import com.ytc.www.dto.ResponseBox;
import com.ytc.www.dto.UserDTO;
import com.ytc.www.entity.EducationUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "online-education-user-provider")
public interface ConsumerUserControllerClient {
    @RequestMapping(value = "api/users/getAll")
    ResponseBox getAll(@RequestBody UserDTO userDTO,@RequestParam int gotoPage);
    @GetMapping(value = "api/users/{id}")
    ResponseBox getById(@PathVariable("id") int id);
    @PostMapping(value = "/api/users/update")
    ResponseBox<EducationUser> update(@RequestBody EducationUser user);
    @DeleteMapping(value = "/api/users/{id}")
    ResponseBox delete(@PathVariable("id") int id);
}
